package cn.appsys.pojo;
/**
 * 分页实体类
 * @author Administrator
 *
 */
public class Page {
	//              currPageNo
	private Integer currPageNo;//当前页码
	private Integer totalCount;//总记录数
	private Integer pageSize; //每一页的数据行数，页面大小
	private Integer totalPageCount; //总的页数
	public Integer getCurrPageNo() {
		return currPageNo;
	}
	public void setCurrPageNo(Integer currPageNo) {
		this.currPageNo = currPageNo;
	}
	public Integer getTotalCount() {
		return totalCount;
	}
	public void setTotalCount(Integer totalCount) {
		if(totalCount > 0 ) {
			this.totalCount = totalCount;
			this.totalPageCount = this.totalCount % this.pageSize == 0 ? 
					this.totalCount/ this.pageSize: this.totalCount / this.pageSize + 1;
		}
		this.totalCount = totalCount;
	}
	public Integer getPageSize() {
		return pageSize;
	}
	public void setPageSize(Integer pageSize) {
		this.pageSize = pageSize;
	}
	public Integer getTotalPageCount() {
		return totalPageCount;
	}
	public void totalTotalPageCount(Integer totalPageCount) {
		this.totalPageCount = totalPageCount;
	}
	
}

